//
//  CharacterBuff.m
//  CandyJump
//
//  Created by Bon Lam on 25/06/2011.
//  Copyright 2011 Peru Republic. All rights reserved.
//

#import "CharacterBuff.h"

#define CHAR_BUFF_TYPE_JUMP_BOOST_STR		@"JUMP_BOOST"
#define CHAR_BUFF_TYPE_STAR_MAGNET_STR		@"STAR_MAGNET"
#define CHAR_BUFF_TYPE_BUBBLE_STR			@"BUBBLE"
#define CHAR_BUFF_TYPE_IMMUNE_STR			@"IMMUNE"
#define CHAR_BUFF_TYPE_ROCKET_STR			@"ROCKET"
#define CHAR_BUFF_TYPE_DISEASE_STR			@"DISEASE"
#define CHAR_BUFF_TYPE_BLIND_STR			@"BLIND"


//=====================================================================================================================
@implementation CharacterBuffInfo

@synthesize charBuffType;
@synthesize paramDictionary;

//---------------------------------------------------------------------------------------------------------------------
+ (CHAR_BUFF_TYPE) charBuffTypeByString:(NSString *)str
{
	if ([str isEqualToString:CHAR_BUFF_TYPE_JUMP_BOOST_STR] == YES) {return CHAR_BUFF_TYPE_JUMP_BOOST;}
	if ([str isEqualToString:CHAR_BUFF_TYPE_STAR_MAGNET_STR] == YES) {return CHAR_BUFF_TYPE_STAR_MAGNET;}
	if ([str isEqualToString:CHAR_BUFF_TYPE_BUBBLE_STR] == YES) {return CHAR_BUFF_TYPE_BUBBLE;}
	if ([str isEqualToString:CHAR_BUFF_TYPE_IMMUNE_STR] == YES) {return CHAR_BUFF_TYPE_IMMUNE;}
	if ([str isEqualToString:CHAR_BUFF_TYPE_ROCKET_STR] == YES) {return CHAR_BUFF_TYPE_ROCKET;}
	if ([str isEqualToString:CHAR_BUFF_TYPE_DISEASE_STR] == YES) {return CHAR_BUFF_TYPE_DISEASE;}
	if ([str isEqualToString:CHAR_BUFF_TYPE_BLIND_STR] == YES) {return CHAR_BUFF_TYPE_BLIND;}
	
	return CHAR_BUFF_TYPE_UNDEFINED;
}

@end

//=====================================================================================================================
@interface CharacterBuff(PrivateMethods)

@end

//=====================================================================================================================
@implementation CharacterBuff(PrivateMethods)


@end

//=====================================================================================================================
@implementation CharacterBuff



@end
